package com.hq.door.pojo;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.MappedSuperclass;
import javax.persistence.OneToMany;


/**
 * AbstractTStudent entity provides the base persistence definition of the TStudent entity. @author MyEclipse Persistence Tools
 */
@MappedSuperclass

public abstract class AbstractTStudent  implements java.io.Serializable {


    // Fields    

     private Integer id;
     private TClass TClass;
     private String name;
     private String code;
     private String weixinId;
     private String mobile;
     private String password;
     private String cordNo;
     private String parentName;
     private String parentMobile;
     private String parentName2;
     private String parentMobile2;
     private Timestamp modifiedTime;
     private Integer modifiedBy;
     private Set<TParent> TParents = new HashSet<TParent>(0);
     private Set<TOutRequest> TOutRequests = new HashSet<TOutRequest>(0);


    // Constructors

    /** default constructor */
    public AbstractTStudent() {
    }

	/** minimal constructor */
    public AbstractTStudent(String name, String code, String mobile) {
        this.name = name;
        this.code = code;
        this.mobile = mobile;
    }
    
    /** full constructor */
    public AbstractTStudent(TClass TClass, String name, String code, String weixinId, String mobile, String password, String cordNo, String parentName, String parentMobile, String parentName2, String parentMobile2, Timestamp modifiedTime, Integer modifiedBy, Set<TParent> TParents, Set<TOutRequest> TOutRequests) {
        this.TClass = TClass;
        this.name = name;
        this.code = code;
        this.weixinId = weixinId;
        this.mobile = mobile;
        this.password = password;
        this.cordNo = cordNo;
        this.parentName = parentName;
        this.parentMobile = parentMobile;
        this.parentName2 = parentName2;
        this.parentMobile2 = parentMobile2;
        this.modifiedTime = modifiedTime;
        this.modifiedBy = modifiedBy;
        this.TParents = TParents;
        this.TOutRequests = TOutRequests;
    }

   
    // Property accessors
    @Id @GeneratedValue
    
    @Column(name="id", unique=true, nullable=false)

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
	@ManyToOne(fetch=FetchType.LAZY)
        @JoinColumn(name="class_id")

    public TClass getTClass() {
        return this.TClass;
    }
    
    public void setTClass(TClass TClass) {
        this.TClass = TClass;
    }
    
    @Column(name="name", nullable=false, length=100)

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    @Column(name="code", nullable=false, length=30)

    public String getCode() {
        return this.code;
    }
    
    public void setCode(String code) {
        this.code = code;
    }
    
    @Column(name="weixin_id", length=100)

    public String getWeixinId() {
        return this.weixinId;
    }
    
    public void setWeixinId(String weixinId) {
        this.weixinId = weixinId;
    }
    
    @Column(name="mobile", length=20)

    public String getMobile() {
        return this.mobile;
    }
    
    public void setMobile(String mobile) {
        this.mobile = mobile;
    }
    
    @Column(name="password", nullable=false, length=100)

    public String getPassword() {
        return this.password;
    }
    
    public void setPassword(String password) {
        this.password = password;
    }
    
    @Column(name="cord_no", length=100)

    public String getCordNo() {
        return this.cordNo;
    }
    
    public void setCordNo(String cordNo) {
        this.cordNo = cordNo;
    }
    
    @Column(name="parent_name", length=100)

    public String getParentName() {
        return this.parentName;
    }
    
    public void setParentName(String parentName) {
        this.parentName = parentName;
    }
    
    @Column(name="parent_mobile", length=20)

    public String getParentMobile() {
        return this.parentMobile;
    }
    
    public void setParentMobile(String parentMobile) {
        this.parentMobile = parentMobile;
    }
    
    @Column(name="parent_name2", length=100)

    public String getParentName2() {
        return this.parentName2;
    }
    
    public void setParentName2(String parentName2) {
        this.parentName2 = parentName2;
    }
    
    @Column(name="parent_mobile2", length=20)

    public String getParentMobile2() {
        return this.parentMobile2;
    }
    
    public void setParentMobile2(String parentMobile2) {
        this.parentMobile2 = parentMobile2;
    }
    
    @Column(name="modified_time", length=19)

    public Timestamp getModifiedTime() {
        return this.modifiedTime;
    }
    
    public void setModifiedTime(Timestamp modifiedTime) {
        this.modifiedTime = modifiedTime;
    }
    
    @Column(name="modified_by")

    public Integer getModifiedBy() {
        return this.modifiedBy;
    }
    
    public void setModifiedBy(Integer modifiedBy) {
        this.modifiedBy = modifiedBy;
    }
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="TStudent")

    public Set<TParent> getTParents() {
        return this.TParents;
    }
    
    public void setTParents(Set<TParent> TParents) {
        this.TParents = TParents;
    }
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="TStudent")

    public Set<TOutRequest> getTOutRequests() {
        return this.TOutRequests;
    }
    
    public void setTOutRequests(Set<TOutRequest> TOutRequests) {
        this.TOutRequests = TOutRequests;
    }
   








}